<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
    <h1></h1>
   <script>
        function fn(obj){
            //  console.log('fn执行 并进来了'+n);
            console.log(obj);
            document.querySelector('h1').innerHTML = obj.name;
        }

        // fn([object Object])
   </script>
   <script src="http://localhost/getJsonp"></script>
   <!-- fn({"name":"laowang","age":18}) -->
   <!-- fn([object Object]) X -->
</body>
</html>